package com.system.service.Impl;

import com.system.dao.CourseMapper;
import com.system.entity.Course;
import com.system.service.courseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.CrossOrigin;

@CrossOrigin
@Service
public class courseServiceImpl implements courseService {
    @Autowired
    CourseMapper courseMapper;

    @Override
    public Course findByCourseCoding(Integer id) {
        return courseMapper.selectByPrimaryKey(id);
    }
}
